<div class="bjui-pageHeader">
    <div class="pull-right">
        <button class="btn-default" data-icon="plus" title="增加产品" data-toggle="tooltip" data-placement="left" onclick="createDialog('{:U("Forms/firend")}', '增加有情连接', 'firend', {height:450})"></button>
        <button class="btn-default" data-icon="refresh" onclick="$.CurrentNavtab.navtab('refresh')"></button>
    </div>
    <form id="pagerForm" data-toggle="ajaxsearch" data-loadingmask="true" action="{:U('firend')}" method="post">
        <input type="hidden" name="pageSize" value="{:I('param.pageSize')}" />
        <input type="hidden" name="pageCurrent" value="{:I('param.pageCurrent')}" />
        <input type="hidden" name="orderField" value="{:I('param.orderField')}" />
        <input type="hidden" name="orderDirection" value="{:I('param.orderDirection')}" />
        <div class="bjui-searchBar">
            <label>状态:</label>
            <select name="status" data-toggle="selectpicker">
                <option value="">全部</option>
                <option value="0" <if condition="I('status') eq '0'">selected="selected"</if>>显示</option>
                <option value="1" <if condition="I('status') eq '1'">selected="selected"</if>>不显示</option>
            </select>
            <label>名称:</label>
            <input type="text" name="name" class="w200" value="{:I('name')}"/>
            <button type="submit" class="btn-default" data-icon="search">查询</button>
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="false">
        <thead>
        <tr>
            <th width="60px">权重</th>
            <th>名称</th>
            <th>连接</th>
            <th>新窗口</th>
            <th>状态</th>
            <th width="100px">操作</th>
        </tr>
        </thead>
        <tbody>
        <volist name="list" id="vo">
        <tr>
            <td>{$vo.sort}</td>
            <td>{$vo.name}</td>
            <td>
                <a href="{$vo.url}" target="_blank">{$vo.url}</a>
            </td>
            <if condition="$vo.is_blank eq '1'">
            <td><a href="{:U('Forms/update_friend_blank',array('id'=>$vo['id']))}" data-type="get" data-toggle="doajax" data-confirm-msg="要更改打开的方式吗?">是</a></td>
            <else/>
            <td><a href="{:U('Forms/update_friend_blank',array('id'=>$vo['id']))}" data-type="get" data-toggle="doajax" data-confirm-msg="要更改打开的方式吗?">否</a></td>
            </if>
            <if condition="$vo.status eq '0'">
            <td><a href="{:U('Forms/update_friend_status',array('id'=>$vo['id']))}" data-type="get" data-toggle="doajax" data-confirm-msg="确定要<strong class='text-danger'>不显示</strong>这个友情链接?">显示</a></td>
            <else/>
            <td><a href="{:U('Forms/update_friend_status',array('id'=>$vo['id']))}" data-type="get" data-toggle="doajax" data-confirm-msg="确定要<strong class='text-danger'>显示</strong>这个友情链接?">不显示</a></td>
            </if>
            <td>
                <button type="button" class="btn-green" data-type="get" onclick="createDialog('{:U("Forms/firend",array("id"=>$vo[id]))}', '修改友情链接', 'firend', {height:450})">改</button>
                <a href="{:U('Forms/del_friend',array('id'=>$vo['id']))}" class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要<strong class='text-danger'>删除</strong>这个链接?">删</a>
            </td>
        </tr>
        </volist>
        </tbody>
    </table>
</div>
<include file="Common/footer" ftype="page" />